package com.itheima.dao;

import com.itheima.pojo.CheckGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CheckGroupDao {

    @Select("select tcg.* from t_checkgroup tcg\n" +
            "    left join t_setmeal_checkgroup tsc on tcg.id = tsc.checkgroup_id\n" +
            "where tsc.setmeal_id =#{setmealId};")
    List<CheckGroup> getBySetmealId(Integer setmealId);
}
